# 日常工作的内容
from decimal import Decimal

# 整数求平方
a = 3
r = a ** 2
print(r)

# 小数求平方，要求精确
b = 1.1
res01 = b ** 2
print(res01)
res02 = Decimal(str(b)) * Decimal(str(b))
print(res02)

# 数组求平方
c = [1,3,5,19]

res03 = []
for i in c:
    res03.append(i ** 2)
print(res03)